
n=5;
m=5;
A = gones(n,m);
gfor k = 1:n
  condition = k > 10; % good
  A(n,k) = ~condition*A(n,k) + condition*(k+1);
gend